package com.ruoyi.system.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * CS Token 存储对象 cs_token
 *
 * @author ruoyi
 * @date 2025-10-14
 */
@Data
public class CsToken {
    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    private Long id;

    // 新增账户名称
    private String account;

    /**
     * Steam DT Bearer Token
     */
    @Excel(name = "Steam DT Bearer Token")
    private String steamDtBearerToken;

    /**
     * CS QA API Token
     */
    @Excel(name = "CS QA API Token")
    private String csQaqApiToken;

    /**
     * C5 应用密钥
     */
    @Excel(name = "C5 应用密钥")
    private String c5AppKey;

    /**
     * 更新时间戳
     */
    @Excel(name = "更新时间戳")
    private Long updateTimestamp;

    /**
     * 状态 0-禁用 1-正常
     */
    @Excel(name = "状态 0-禁用 1-正常")
    private Long status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updateDate;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setSteamDtBearerToken(String steamDtBearerToken) {
        this.steamDtBearerToken = steamDtBearerToken;
    }

    public String getSteamDtBearerToken() {
        return steamDtBearerToken;
    }

    public void setCsQaqApiToken(String csQaqApiToken) {
        this.csQaqApiToken = csQaqApiToken;
    }

    public String getCsQaqApiToken() {
        return csQaqApiToken;
    }

    public void setC5AppKey(String c5AppKey) {
        this.c5AppKey = c5AppKey;
    }

    public String getC5AppKey() {
        return c5AppKey;
    }

    public void setUpdateTimestamp(Long updateTimestamp) {
        this.updateTimestamp = updateTimestamp;
    }

    public Long getUpdateTimestamp() {
        return updateTimestamp;
    }

    public void setStatus(Long status) {
        this.status = status;
    }

    public Long getStatus() {
        return status;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("steamDtBearerToken", getSteamDtBearerToken())
                .append("csQaqApiToken", getCsQaqApiToken())
                .append("c5AppKey", getC5AppKey())
                .append("updateTimestamp", getUpdateTimestamp())
                .append("status", getStatus())
                .append("createDate", getCreateDate())
                .append("updateDate", getUpdateDate())
                .toString();
    }
}
